import React from 'react';

function createRoute(options: any) {
    let isDecoration = false;
    setTimeout(() => {
       if(isDecoration){
           return;
       } 
       
       console.error('请使用装饰器或者二次调用包含 :p');
       console.error('please use decorators or second call function :p');
    });
    return function (Component: any) {
        isDecoration = true;
        return Component;
    }
}

let route = createRoute({
    path: '/',
    exact: true,
});

@route
class AccountLogin extends React.Component {
    render() {
        return <div>AAA</div>;
    }

}

export default AccountLogin;